package com.lekang.le.service;

import java.util.List;
import com.lekang.le.domain.AppointmentRegistration;

/**
 * 预约登记Service接口
 * 
 * @author caoyangyang
 * @date 2025-10-14
 */
public interface IAppointmentRegistrationService 
{
    /**
     * 查询预约登记
     * 
     * @param id 预约登记主键
     * @return 预约登记
     */
    public AppointmentRegistration selectAppointmentRegistrationById(Long id);

    /**
     * 查询预约登记列表
     * 
     * @param appointmentRegistration 预约登记
     * @return 预约登记集合
     */
    public List<AppointmentRegistration> selectAppointmentRegistrationList(AppointmentRegistration appointmentRegistration);

    /**
     * 新增预约登记
     * 
     * @param appointmentRegistration 预约登记
     * @return 结果
     */
    public int insertAppointmentRegistration(AppointmentRegistration appointmentRegistration);

    /**
     * 修改预约登记
     * 
     * @param appointmentRegistration 预约登记
     * @return 结果
     */
    public int updateAppointmentRegistration(AppointmentRegistration appointmentRegistration);

    /**
     * 批量删除预约登记
     * 
     * @param ids 需要删除的预约登记主键集合
     * @return 结果
     */
    public int deleteAppointmentRegistrationByIds(Long[] ids);

    /**
     * 删除预约登记信息
     * 
     * @param id 预约登记主键
     * @return 结果
     */
    public int deleteAppointmentRegistrationById(Long id);

    //增加修改接口
    public int updateAppointmentRegistrationArrivaltimeById(AppointmentRegistration appointmentRegistration);

    /**
     * 查询用户今天的预约次数（探访+参观）
     * 
     * @param wxUserId 微信用户ID
     * @return 今天的预约次数
     */
    public int getTodayAppointmentCount(Long wxUserId);

    /**
     * 查询用户今天的取消预约次数
     * 
     * @param wxUserId 微信用户ID
     * @return 今天的取消预约次数
     */
    public int getTodayCancelCount(Long wxUserId);
}
